package com.ruoyi.cinema.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 套餐组合对象 combo_group_info
 *
 * @author HHAOYU
 * @date 2020-12-09
 */
@TableName("combo_group_info")
public class ComboGroupInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "id")
    private Long id;
    /** $column.columnComment */
    private Long goodsId;
    /** 分组ID */
    @Excel(name = "分组ID")
    private String groupId;
    /** 组名 */
    @Excel(name = "组名")
    private String groupName;
    /** 本组是否默认 */
    @Excel(name = "本组是否默认")
    private String requiredFlag;
    /** 本组可选数量 */
    @Excel(name = "本组可选数量")
    private Long requiredNum;
    /** 本组售价 */
    @Excel(name = "本组售价")
    private Long initialPrice;

    private List<ComboGroupGoods> comboGroupGoodsList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId()
    {
        return goodsId;
    }
    public void setGroupId(String groupId)
    {
        this.groupId = groupId;
    }

    public String getGroupId()
    {
        return groupId;
    }
    public void setGroupName(String groupName)
    {
        this.groupName = groupName;
    }

    public String getGroupName()
    {
        return groupName;
    }
    public void setRequiredFlag(String requiredFlag)
    {
        this.requiredFlag = requiredFlag;
    }

    public String getRequiredFlag()
    {
        return requiredFlag;
    }
    public void setRequiredNum(Long requiredNum)
    {
        this.requiredNum = requiredNum;
    }

    public Long getRequiredNum()
    {
        return requiredNum;
    }
    public void setInitialPrice(Long initialPrice)
    {
        this.initialPrice = initialPrice;
    }

    public Long getInitialPrice()
    {
        return initialPrice;
    }

    public List<ComboGroupGoods> getComboGroupGoodsList() {
        return comboGroupGoodsList;
    }

    public void setComboGroupGoodsList(List<ComboGroupGoods> comboGroupGoodsList) {
        this.comboGroupGoodsList = comboGroupGoodsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsId", getGoodsId())
            .append("groupId", getGroupId())
            .append("groupName", getGroupName())
            .append("requiredFlag", getRequiredFlag())
            .append("requiredNum", getRequiredNum())
            .append("initialPrice", getInitialPrice())
            .toString();
    }
}
